package com.vhall.component.entity.redpacket.vo;


import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author xianglei
 * @date 2021/3/8
 */
@Data
public class OverBySourceIdReqVO implements Serializable {
    private static final long serialVersionUID = 7468559009293175352L;

    /**
     * PaaS应用ID
     */
    @NotBlank
    @Size(min = 1, max = 100)
    @ParamName("app_id")
    private String appId;

    /**
     * 第三方业务系统中的来源ID，用来统计数据用
     */
    @NotBlank
    @Size(min = 1, max = 255)
    @ParamName("source_id")
    private String sourceId;

    /**
     * 发送表情类型：1.红包，2.礼品，默认为1
     */
    @Range(min = 1, max = 2)
    @ParamName("gift_type")
    private Integer giftType = 1;
}
